﻿using MyFileView.Shard;
using MyFileView.Shard.Model;

using MyFleView.Service;

using Newtonsoft.Json;

using System.Collections.Generic;
using System.Web;
using System.Web.Mvc;

namespace MyFleView.Controllers
{
    public class PreviewController : Controller
    {
        public PreviewController() 
        {
        
        }

        public ActionResult Index()
        {
            return View();
        }
        public ActionResult ExcelPreview()
        {
            var cacheResult = (PreviewFileResponseModel)HttpContext.Cache.Get("preview");
            //byte[] bytes=uploadFileModel.to
            return View(cacheResult);
        }


        public ActionResult PdfPreview()
        {
            var cacheResult = (PreviewFileResponseModel)HttpContext.Cache.Get("preview");
            //byte[] bytes=uploadFileModel.to
            return View(cacheResult);
        }

        public ActionResult PicturePreview()
        {
            var cacheResult =(PreviewFileResponseModel)HttpContext.Cache.Get("preview");
            //byte[] bytes=uploadFileModel.to
            return View(cacheResult);
        }
    }
}